// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import {router} from './router'
import Navigation from 'vue-navigation'
import request from './libs/request'
import VueLazyLoad from 'vue-lazyload'
import FastClick from 'fastclick'
Vue.use(VueLazyLoad, {
  // error:'./static/error.png',
  // loading:'./static/loading.png'
  error: './static/lazy/img_placeholder.png',
  loading: './static/lazy/spinner.gif'
})
FastClick.attach(document.body)

Vue.config.productionTip = false
Vue.use(Navigation, {router})
Vue.use(request)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
